[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 BOOLEAN   Type

 Function
  Declare one or more variables of type boolean.

 Syntax
  BOOLEAN var|arr(s[,s[,s]])[,var|arr(s[,s[,s]])]

   var  - The name of a variable to declare.  Must start with a letter
          [A-Z] which may be followed by letters, digits [0-9] or the
          underscore [_].  May be of any length but only the first 32
          characters are used.
   arr  - The name of an array variable to declare.  The same naming
          conventions as var are used.
   s    - The size (0-based) of an array variable dimension.  Any
          constant integer expression is allowed.

 Remarks
  BOOLEAN variables can hold two values:  1 or 0 (TRUE or FALSE).  It is
  stored internally as a one byte unsigned character.  If a BOOLEAN is
  assigned to or from an INTEGER type then the value 1 or 0 is assigned.
  If a BOOLEAN is assigned to a STRING type then it is automatically
  converted to a string (either "1" or "0").  If a STRING is assigned to a
  BOOLEAN then the value of the string will be used; a 0 value will be
  taken as is, another other value will be converted to 1.  All other types,
  when assigned to or from a BOOLEAN, will be converted to an INTEGER
  first before being assigned to or from the BOOLEAN type.

 Examples
  BOOLEAN flag, bit, isPrime(100), leapYears(2079-1900)

See Also: DATE INTEGER MONEY STRING TIME
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson